chore(Upgrade guide): removed verbiage on button aria-disabled#4494
chore(Upgrade guide): removed verbiage on button aria-disabled#4494edonehoo merged 3 commits intopatternfly:mainfrom
Conversation
087fd4b to
b075f66
Compare
|
@edonehoo would you mind taking a look at this update? i originally put this PR up before one of yours went in that updated this page a bit and just pushed a tweak based on a convo Titani and I had yesterday. |
edonehoo
left a comment
There was a problem hiding this comment.
I left a couple of options for line 176, because I wasn't 100% sure if I was reading that right. If both are wrong, lmk 😅
| 1. *Cannot find aria-disabled* | ||
| - **Cause:** We changed the `isDisabled` prop to assign a value for `disabled`, but none for `aria-disabled`. | ||
| - **Fix:** Remove tests that look for `aria-disabled` in buttons. | ||
| - **Cause:** We changed button's `isDisabled` prop to assign a value for `disabled`, but none for `aria-disabled` - except for when the `component` prop is passed anything other than "button" as a value. Additionally, `aria-disabled` will now only render when true. |
There was a problem hiding this comment.
| - **Cause:** We changed button's `isDisabled` prop to assign a value for `disabled`, but none for `aria-disabled` - except for when the `component` prop is passed anything other than "button" as a value. Additionally, `aria-disabled` will now only render when true. | |
| - **Cause:** We changed button's `isDisabled` prop to assign a value for `disabled`, but none for `aria-disabled`. The exception to this is when the `component` prop is passed anything other than "button" as a value. Additionally, `aria-disabled` will now only render when true. |
| - **Cause:** We changed the `isDisabled` prop to assign a value for `disabled`, but none for `aria-disabled`. | ||
| - **Fix:** Remove tests that look for `aria-disabled` in buttons. | ||
| - **Cause:** We changed button's `isDisabled` prop to assign a value for `disabled`, but none for `aria-disabled` - except for when the `component` prop is passed anything other than "button" as a value. Additionally, `aria-disabled` will now only render when true. | ||
| - **Fix:** Remove tests that look for `aria-disabled` in buttons when the expectation is for it to be false, or to match `isDisabled` when `component="button"`. |
There was a problem hiding this comment.
| - **Fix:** Remove tests that look for `aria-disabled` in buttons when the expectation is for it to be false, or to match `isDisabled` when `component="button"`. | |
| - **Fix:** Remove tests that look for `aria-disabled` in buttons when the expectation is either: | |
| - For `aria-disabled` to be false. | |
| - For `aria-disabled` to match `isDisabled` when `component="button"`. |
I'm not sure if I'm correctly interpreting the end of the sentence. I took it like there are 2 instances where you should remove these tests (the suggestion above and also below)
I can also interpret it like this:
Fix: Either:
- Remove tests that look foraria-disabledin buttons, when the expectation is foraria-disabledto be false.
- Matcharia-disabledtoisDisabledwhencomponent="button".
Depends on patternfly/patternfly-react#11619